import { getFareByAddressId } from '@/api/ware/ware'

const state = {
  // userKey: getUserKey()
}

const mutations = {

}

const actions = {
  getFareByAddressId({ commit }, addressId) {
    return new Promise((resolve, reject) => {
      getFareByAddressId(addressId)
        .then(response => {
          resolve(response)
        }).catch(error => {
        reject(error)
      })
    })
  }
}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}
